import {createWebHashHistory, createRouter} from 'vue-router'
import Home from './views/Home.vue'
import Doc from './views/Doc.vue'
import SwitchDemo from './components/SwitchDemo.vue'

const history = createWebHashHistory()
const router = createRouter({
  history: history,
  routes: [
    {path: '/', component: Home},
    {
        path: '/doc', 
        component: Doc,
        redirect:'/doc/switch',
        children:[
          {path:'switch', component:SwitchDemo},
      ]
    }
  ]
})
export default router